import React from 'react';
import { Table ,Pagination } from 'antd';

import { useState } from "react"

const columns = [
  {
    title: '员工编号',
    dataIndex: 'name',
  },
  {
    title: '职位',
    dataIndex: 'age',
  },
  {
    title: '姓名',
    dataIndex: 'address',
  },
];

const data:any = [];
for (let i = 0; i < 46; i++) {
  data.push({
    key: i,
    name: `NO 9527${i}`,
    age: `送货员`,
    address: `张三${i}`,
  });
}
   

const Index = () => {

 
    return  < >
     {/* <Pagination
  showSizeChanger
  // onShowSizeChange={onShowSizeChange}
  defaultPageSize={6}
  // defaultCurrent={3}
  // total={500}
    /> */}
    <Table columns={columns} dataSource={data}  pagination={{defaultPageSize:6}} bordered />;
    </>
  }

  


export default Index;
